package oop7;

/**
 * @author oldliu
 * @since 1.0
 */
public class CalcTest2 {
    public static void main(String[] args)  {
        int a=10;
        int b=0;
        Calc c=new Calc();
        int shang= 0;
        try {
            shang = c.div(a,b);
            System.out.println("商是："+shang);
        } catch (Exception e) {
            System.out.println("除法出现了错误：");
            e.printStackTrace();
        }

    }
}
